package com.itbaizhan.paymentdemo.service;

import com.alipay.api.AlipayApiException;
import com.itbaizhan.paymentdemo.vo.BaseResult;
import jakarta.servlet.http.HttpServletRequest;

//支付宝接口
public interface IZfbPayService {

    /**
     * 统一下单
     * @param orderNo
     * @return
     */
    BaseResult  pcPay(String orderNo);

    /**
     * 修改订单状态
     */
    void updateOrderStatus(HttpServletRequest request);

    /**
     * 申请退款
     * @param orderNo
     * @param reason
     */
    void refund(String orderNo,String reason);

    /**
     * 查询订单状态
     * @param orderNo  订单编号
     * @return
     */
    String queryOrderStatus(String orderNo) throws Exception;
}
